package sd.qd.xiaoming.coffeedesk.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import sd.qd.xiaoming.coffeedesk.dao.CdNoteTypeDAO;
import sd.qd.xiaoming.coffeedesk.entity.CdNoteType;

@Transactional
@Service
public class CdNoteTypeService extends BaseService<CdNoteTypeDAO, CdNoteType> {

	@SuppressWarnings("unused")
	@Autowired
	private CdNoteTypeDAO dao;


    @Override
    public CdNoteType findById(final Long id) {
        CdNoteType type = super.findById(id);
        type.getNotes().size();
        return type;
    }

}
